//
//  TableViewCell.m
//  UI_18_homework_SQLite_联系人信息存入数据库
//
//  Created by li cheng on 16/8/8.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "TableViewCell.h"

@implementation TableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _myImageView = [[UIImageView alloc] init];
        _myImageView.image = [UIImage imageNamed:@"111"];
        [self.contentView addSubview:_myImageView];
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    _myImageView.backgroundColor = [UIColor redColor];
    _myImageView.frame = CGRectMake(0, 0, self.contentView.bounds.size.width / 3, self.contentView.bounds.size.height);
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
